﻿using Ymatou.User.Dto;
using Ymatou.User.Dto.PasswordAction;
using YmtAuth.Dto;

namespace YmtAuth.AppService
{
    /// <summary>
    /// User password action
    /// </summary>
    public interface IPasswordAppService
    {
        /// <summary>
        /// 交易密码是否等同于登录密码
        /// </summary>
        /// <param name="tradingPassword"></param>
        /// <param name="userId"></param>
        /// <returns></returns>
        bool TradingPasswordEqualsLoginPassword(string tradingPassword, int userId);
        /// <summary>
        /// 修改密码
        /// </summary>    
        /// <returns></returns>
        ResponseData<ResetPasswordReponseCode> ChangUserPasswordById(PasswordRequestDto dto);
    }
}
